<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			/*(function() {
				//类(class)
				function Person(name,age,sex) {
					var _name = name;
					var _age = age;  //私有化变量习惯性的要加上下划线
					var _sex = sex;
					this.say = function() {
						consoel.log(this.name,_age,_sex);
					}
					//特权方法（getter）：将局部变量暴露出去
					this.getName = function() {
						return _name;
					}
					
					this.getAge = function() {
						return _age;
					}
					
					//特权方法（setter）
					this.setName = function(name) {
						_name = name;
					}
				}
			
				//原型
				Person.prototype.show = function() {
					console.log(this.getName() + '已经' + this.getAge() + "岁");
				}
				
				//原型
				Person.prototype.show2 = function() {
					console.log(this.getName() + '已经' + this.getAge() + "岁");
				}
				
				//静态方法或者属性
				Person.country = 'China';
				window.Person = Person;
			})();
			
			
			//实例化
			var p1 = new Person('小花',18,'女');
			p1.show();
			
			console.log(Person.country);*/
			
			console.dir(Array)

		</script>
	</body>
</html>
